package net.xju3_4.service.impl;


import net.xju3_4.common.utils.PageInfo;
import net.xju3_4.dao.merchantPaymentDao;
import net.xju3_4.entity.PaymentEntity;
import net.xju3_4.service.merchantPaymentService;

import java.util.List;

public class merchantPaymentServiceImpl implements merchantPaymentService {

    merchantPaymentDao merchantPaymentDao = new merchantPaymentDao();

    @Override
    public PageInfo<PaymentEntity> PageList(String paymentType, String paymentTime, String status, String merchantId, String returnTime, String amount, int pageNum, int pageSize) {
        return merchantPaymentDao.PageList(paymentType, paymentTime, status, merchantId, returnTime, amount, pageNum, pageSize);
    }

    @Override
    public List<PaymentEntity> selectAll(String month, String year, String merchantId) {
        return merchantPaymentDao.selectAll(month, year,merchantId);
    }

    @Override
    public List<PaymentEntity> selectYear(String merchantId) {
        return merchantPaymentDao.selectYear(merchantId);
    }

    @Override
    public List<PaymentEntity> selectMonth(String merchantId) {
        return merchantPaymentDao.selectMonth(merchantId);
    }


}
